package com.class05.point;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Configuration
@Component
public class Class05Pointcut {
//    随意定义一个方法配置切点

//    @Pointcut相当于 <aop:pointcut id="testClass05Pointcut"
//    expression="execution(* com.class05.service.impl.CalculatorPureImpl.*(..))"/>

//    @Pointcut用于定义切点，expression属性用于指定切点的表达式
    @Pointcut("execution(* com.class05.service.impl.CalculatorPureImpl.sub(..))")
    public void testClass05Pointcut(){}

    @Pointcut("execution(* com.class05.service.impl.CalculatorPureImpl.add(..))")
    public void testClass05Pointcut1(){}


    @Pointcut("execution(* com..*.div(..))")
    public void testClass05Pointcut2(){}
}
